package com.ly.heart.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import com.ly.common.annotation.Excel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.util.Date;

/**
 * 车务油卡过路卡信息对象 erp_car_card_info
 *
 * @author cxl
 * @date 2024-09-08
 */
@TableName ("erp_car_card_info")
@ApiModel (value = "车务油卡过路卡信息", description = "车务油卡过路卡信息")
@Data
public class CarCardEntity{

    /** 主键id */
    @TableId (type = IdType.INPUT)
    private String id;

    /** 分类（0油卡；1过路卡） */
    @TableField ("type")
    @ApiModelProperty ("0油卡；1过路卡）")
    private Integer type;

    /** 父级id(母卡默认为0) */
    @ApiModelProperty ("父级id(母卡默认为0)")
    @TableField ("parent_id")
    @Excel (name = "父级id(母卡默认为0)")
    private String parentId;

    /** 编号 */
    @ApiModelProperty ("编号")
    @TableField ("card_code")
    @Excel (name = "编号")
    private String cardCode;

    /** 父级编号 */
    @ApiModelProperty ("父级编号")
    @TableField ("parent_code")
    @Excel (name = "父级编号")
    private String parentCode;

    /** 名称 */
    @ApiModelProperty ("名称")
    @TableField ("card_name")
    @Excel (name = "名称")
    private String cardName;

    /** 卡号 */
    @ApiModelProperty ("卡号")
    @TableField ("card_number")
    @Excel (name = "卡号")
    private String cardNumber;

    /** 类型（0母卡；1子卡） */
    @TableField ("category")
    @ApiModelProperty ("${field.name}")
    @Excel (name = "类型", readConverterExp = "0=母卡；1子卡")
    private String category;

    /** 车牌号 */
    @ApiModelProperty ("车牌号")
    @TableField ("car_num")
    @Excel (name = "车牌号")
    private String carNum;

    /** 密码 */
    @ApiModelProperty ("密码")
    @TableField ("card_password")
    @Excel (name = "密码")
    private String cardPassword;

    /** 余额 */
    @ApiModelProperty ("余额")
    @TableField ("surplus_amount")
    @Excel (name = "余额")
    private String surplusAmount;

    /** 创建部门 */
    @ApiModelProperty ("创建部门")
    @TableField ("create_dept")
    @Excel (name = "创建部门")
    private String createDept;

    /** 修改部门 */
    @ApiModelProperty ("修改部门")
    @TableField ("update_dept")
    @Excel (name = "修改部门")
    private String updateDept;

    /** 禁用人 */
    @ApiModelProperty ("禁用人")
    @TableField ("disable_by")
    @Excel (name = "禁用人")
    private String disableBy;

    /** 禁用部门 */
    @ApiModelProperty ("禁用部门")
    @TableField ("disable_dept")
    @Excel (name = "禁用部门")
    private String disableDept;

    /** 反禁用人 */
    @ApiModelProperty ("反禁用人")
    @TableField ("unban_by")
    @Excel (name = "反禁用人")
    private String unbanBy;

    /** 反禁用部门 */
    @ApiModelProperty ("反禁用部门")
    @TableField ("unban_dept")
    @Excel (name = "反禁用部门")
    private String unbanDept;

    /** 是否可用 */
    @ApiModelProperty ("是否可用")
    @TableField ("is_used")
    @Excel (name = "是否可用")
    private Integer isUsed;

    /** 流程实例ID */
    @ApiModelProperty ("流程实例ID")
    @TableField ("instance_id")
    @Excel (name = "流程实例ID")
    private String instanceId;

    /** 状态 */
    @ApiModelProperty ("状态")
    @TableField ("state")
    @Excel (name = "状态")
    private String state;

    /** 数据状态（1正常 2禁用 ） */
    @TableField ("is_disabled")
    @ApiModelProperty ("${field.name}")
    @Excel (name = "数据状态", readConverterExp = "1=正常,2=禁用")
    private Integer isDisabled;

    /** 创建人 */
    @ApiModelProperty ("创建人")
    @TableField ("create_by")
    @Excel (name = "创建人")
    private String createBy;

    /** 创建时间 */
    @ApiModelProperty ("创建时间")
    @TableField ("create_time")
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel (name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createTime;

    /** 修改人 */
    @ApiModelProperty ("修改人")
    @TableField ("update_by")
    @Excel (name = "修改人")
    private String updateBy;

    /** 修改时间 */
    @ApiModelProperty ("修改时间")
    @TableField ("update_time")
    @JsonFormat (pattern = "yyyy-MM-dd")
    @Excel (name = "修改时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date updateTime;

}
